import request from '@/utils/request'

// 核验规则
export const getDataList = (params: any) => {
    return request({
        url: "/data-governance/quality/ruleTemplate/page",
        method: 'post',
        params: params
    });
}

// 核验规则版本时间
export const getVersionTime = () => {
    return request({
        url: "/data-governance/quality/ruleTemplate/list-version"
    })
}

// 核验规则停用
export const stopRule = (params: any) => {
    return request.post('/data-governance/quality/ruleTemplate/forbid', params)
}

// 核验规则启用
export const startRule = (params: any) => {
    return request.post('/data-governance/quality/ruleTemplate/open', params)
}

// 版本时间
export const getVTime = (params: any) => {
    return request({
        url: "/quality_platform/verification_management/get_times",
        method: 'post',
        params: params
    });
}

// 规则分类
export const getRuleTypeList = (params: any) => {
    return request({
        url: 'data-governance/dataQaRuleType/list',
        method: 'get',
        params: params
    });
}